package com.zhuhan.dao;

import com.zhuhan.domain.Account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AccountDao {

    /**
     * 查询所有账户信息
     *
     * @return
     */
    @Select("select * from account")
    public List<Account> findAll();

    /**
     * 添加账户信息
     *
     * @param account
     * @return
     */
    @Insert("insert into account values (null,#{name},#{money})")
    public int addAccount(Account account);
}
